package com.tinyseed.emcp.api.productionRule.transfer;

import com.tinyseed.emcp.api.productionRule.bean.ReductionInputDTO;
import com.tinyseed.emcp.api.productionRule.bean.ReductionOutputDTO;
import com.tinyseed.emcp.api.productionRule.entity.Reduction;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * Created by Jarvis on 2019/11/18.
 */
@Mapper
public interface ReductionTransfer {

    ReductionTransfer INSTANCE = Mappers.getMapper(ReductionTransfer.class);

    Reduction mapOut2Model(ReductionOutputDTO reductionOutputDTO);

    ReductionInputDTO mapIn2Model(ReductionInputDTO reductionInputDTO);

    ReductionOutputDTO mapModel2OutPut(Reduction reduction);
}
